package com.ruoyi.cs.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel("创建对战请求参数对象")
public class TbattleCreateVo {

    @ApiModelProperty(value = "箱子集合")
    @NotEmpty
    @Size(min = 1, max =15)
    private List<String> boxs;

    @ApiModelProperty(value = "是否选择机器人")
    private Boolean chooseRobot = false;

    @ApiModelProperty(value = "机器人id")
    private String robatId;

    @ApiModelProperty(value = "价格所属区间类型")
    private String costRangeType;

    @ApiModelProperty(value = "对战模式 0 普通对战 1 非酋对战")
    @Pattern(regexp = "[01]", message = "Number must be 0, 1")
    private String battleMode;

    @ApiModelProperty(value = "是否为主播创建的粉丝对战")
    private Boolean isFansBattle = false;

    @ApiModelProperty(value = "主播创建的粉丝对战是设置的参与密码")
    private String fanPwd;

    @ApiModelProperty(value = "对战人数 2、3、4")
    @Pattern(regexp = "[234]", message = "Number must be 2, 3, or 4")
    private String battleNum;

    @ApiModelProperty(value = "对战者坑位，默认为2")
    @Pattern(regexp = "[234]", message = "Number must be 2, 3, or 4")
    private String pitlocation;

}
